from flask import Flask,request

app = Flask(__name__, static_folder="static", static_url_path="/static")

@app.route("/")
def hello_world():
    return "<p>Hello, World!</p>"
@app.route("/aa")
def aaa():
    print(request.method)
    return "fff"
@app.get("/name")
def get_name():
    return __name__

if __name__ == '__main__':
    # import debugpy

    # # 允许调试器连接到5678端口
    # debugpy.listen(5678)
    # print("Waiting for debugger attach...")
    # # 等待调试器连接
    # debugpy.wait_for_client()
    # app.run(debug=True, port=5000)

    # import os
    # os.environ['PYDEVD_DISABLE_FILE_VALIDATION'] = '1'

    # app.run(debug=True,use_reloader=False)
    app.run(debug=True)